package com.entity.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author chenmo
 * @since 2022-04-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Concept对象", description="")
public class Concept implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "知识点id")
    @TableId(value = "conceptId", type = IdType.AUTO)
    private Integer conceptId;

    @ApiModelProperty(value = "知识点名称")
    @TableField("conceptName")
    private String conceptName;

    @ApiModelProperty(value = "目录代码")
    @TableField("conceptCode")
    private String conceptCode;

    @ApiModelProperty(value = "排序字段，课程id相当于页码，本字段相当于偏移量")
    @TableField("positionId")
    private Integer positionId;

    @ApiModelProperty(value = "关联知识点名称字符串")
    @TableField("nextConceptStr")
    private String nextConceptStr;

    @ApiModelProperty(value = "属于目录（包含）")
    @TableField("categoryId")
    private Integer categoryId;

    @ApiModelProperty(value = "属于目录名称")
    @TableField("categoryName")
    private String categoryName;

    @ApiModelProperty(value = "属于知识点id（包含），相当于父节点")
    @TableField("parentConceptId")
    private Integer parentConceptId;

    @ApiModelProperty(value = "属于知识点名称（包含）")
    @TableField("parentConceptName")
    private String parentConceptName;

    @ApiModelProperty(value = "属性键")
    @TableField("propertiesKey")
    private String propertiesKey;

    @ApiModelProperty(value = "属性值")
    @TableField("propertiesValue")
    private String propertiesValue;

    @ApiModelProperty(value = "创建人工号")
    @TableField("createdBy")
    private String createdBy;

    @ApiModelProperty(value = "创建人工号")
    @TableField("createdByName")
    private String createdByName;

    @TableLogic
    @TableField(value = "isDeleted",fill = FieldFill.INSERT)
    private Integer isDeleted;

    @TableField(value = "createTime",fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间", example = "2019-01-01 10:10:10")
    private Date createTime;

    @TableField(value = "updateTime",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更改时间", example = "2019-02-01 10:10:10")
    private Date updateTime;
}
